package com.qd.common.sys.domain.login;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 用户登录状态
 *
 * @author sjk
 */
@Data
@Accessors(chain = true)
public class LoginStatusDTO {
    /**
     * 用户ID
     */
    private String personId;
    /**
     * 用户账号
     */
    private String account;
    /**
     * 用户登录状态
     */
    private Integer loginStatus;

    public LoginStatusDTO(String account, Integer loginStatus) {
        this.account = account;
        this.loginStatus = loginStatus;
    }

    public void freeData() {
        this.account = null;
        this.loginStatus = null;
        this.personId = null;
    }
}
